//
//  FPNewsHeaderView.m
//  FilmParadise
//
//  Created by lanou3g on 15/7/13.
//  Copyright (c) 2015年 DLYgroup. All rights reserved.
//

#import "FPNewsHeaderView.h"

@implementation FPNewsHeaderView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.picImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0,kScreenWidth, kImageH(180))];
       // self.backgroundColor = [UIColor redColor];
        self.picImageView.image = [UIImage imageNamed:@"0.jpg"];
        self.picImageView.userInteractionEnabled = YES;
        [self addSubview:_picImageView];
        
        self.introButton = [UIButton buttonWithType:UIButtonTypeSystem];
        self.introButton.frame = CGRectMake(0, self.picImageView.frame.size.height - kImageH(30), kScreenWidth, kImageH(30));
    
        [self.introButton setTitle:@"<<蝙蝠侠大战超人>>全长" forState:UIControlStateNormal];
        
        [self.introButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        self.introButton.backgroundColor = [UIColor grayColor];
       [self.picImageView addSubview:self.introButton];
        
        self.rightImageView = [[UIImageView alloc]initWithFrame:CGRectMake(kScreenWidth - kImageH(50),self.picImageView.height - kImageH(30), kImageH(30), kImageH(30))];
        self.rightImageView.image = [UIImage imageNamed:@"cm2_rcd_btn_play_prs@3x"];
        [self addSubview:_rightImageView];
      
    }
    return self;
}

@end
